package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

public interface StudentDao {

    // 定义行为  crud
    // 查询用户
    List<Student> findAll(@Param("studentNum") String studentNum,@Param("studentName") String studentName,@Param("offset")int offset,@Param("pageSize")int pageSize);
    List<Student> findAll2(@Param("student") Student student,@Param("offset")int offset,@Param("pageSize")int pageSize);


    int deleteStudentById(int sId);

    int addStudent(Student student);

    Student findStudentById(int sId);

    int updateStudent(Student student);

    int count(Student student);

    int login(Student student);
}
